<template>
  <el-table
    :data="tableData"
    style="width: 100%"
    :height="'6rem'">
    <el-table-column
      v-for="(value, key, index) in title"
      :key="'generate' + key + index"
      :label="key"
      align="center"
      min-width="160"
    >
      <el-table-column
        v-for="(value1, key1, index1) in value"
        :key="'generate1' + key1 + index1"
        :label="(key == '工序终检' && key1 == 'pp') ? '终检参数' : (key1 === 'pp' ? '工艺参数' : '中间检')"
        align="center"
        min-width="160"
      >
        <el-table-column
          v-for="(value2, key2, index2) in value1"
          :key="'generate2' + key2 + index2"
          :label="key2"
          :prop="key2"
          align="center"
          min-width="160"
        >
        </el-table-column>
      </el-table-column>
    </el-table-column>
  </el-table>
</template>

<script>
export default {
  name: 'generate',
  props: {
    title: {
      type: Object,
      default: () => {}
    },
    tableData: {
      type: Array,
      default: () => []
    }
  },
  data () {
    return {
      tbodyData: []
    }
  }
}
</script>

<style>
</style>
